package com.ax.business.prescription.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class PrescriptionAudit {
    /**
     * 处方审核ID
     */
    private Long prescriptionAuditId;

    /**
     * 处方审核单号
     */
    private String prescriptionAuditSeq;

    /**
     * 会员ID
     */
    private Long associatorId;

    /**
     * 会员姓名
     */
    private String associatorName;

    /**
     * 身份证号
     */
    private String personId;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 运营人员性别
     */
    private String sex;

    /**
     * 科别代码
     */
    private String subjectCode;

    /**
     * 科别
     */
    private String subjectName;

    /**
     * 过敏史
     */
    private String anaphylaxis;

    /**
     * 联系电话
     */
    private String patientPhone;

    /**
     * 地址
     */
    private String address;

    /**
     * 审核结果(0：未审核；1:同意；2：部分同意并修正；3：不同意；4：拒绝审核）
     */
    private Integer auditResultCode;

    /**
     * 审核结果(0：未审核；1:同意；2：部分同意并修正；3：不同意；4：拒绝审核）
     */
    private String auditResultName;

    /**
     * 修正意见
     */
    private String opinion;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 审核时间（显示在单据上）
     */
    private Date auditTime;

    /**
     * 医师ID
     */
    private Long doctorId;

    /**
     * 医师姓名
     */
    private String doctorName;

    /**
     * 医师电话
     */
    private String doctorPhone;

    /**
     * 药师ID
     */
    private Long pharmacistId;

    /**
     * 药师姓名
     */
    private String pharmacistName;

    /**
     * 药师电话
     */
    private String pharmacistPhone;

    /**
     * 药店ID
     */
    private Long drugstoreId;

    /**
     * 药店名称
     */
    private String drugstoreName;

    /**
     * 是否购药
     */
    private Integer isBuy;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;

    public PrescriptionAudit(Long prescriptionAuditId, String prescriptionAuditSeq, Long associatorId, String associatorName, String personId, Integer age, String sex, String subjectCode, String subjectName, String anaphylaxis, String patientPhone, String address, Integer auditResultCode, String auditResultName, String opinion, String remarks, Date auditTime, Long doctorId, String doctorName, String doctorPhone, Long pharmacistId, String pharmacistName, String pharmacistPhone, Long drugstoreId, String drugstoreName, Integer isBuy, Date createDate, Date updateDate, Integer flag) {
        this.prescriptionAuditId = prescriptionAuditId;
        this.prescriptionAuditSeq = prescriptionAuditSeq;
        this.associatorId = associatorId;
        this.associatorName = associatorName;
        this.personId = personId;
        this.age = age;
        this.sex = sex;
        this.subjectCode = subjectCode;
        this.subjectName = subjectName;
        this.anaphylaxis = anaphylaxis;
        this.patientPhone = patientPhone;
        this.address = address;
        this.auditResultCode = auditResultCode;
        this.auditResultName = auditResultName;
        this.opinion = opinion;
        this.remarks = remarks;
        this.auditTime = auditTime;
        this.doctorId = doctorId;
        this.doctorName = doctorName;
        this.doctorPhone = doctorPhone;
        this.pharmacistId = pharmacistId;
        this.pharmacistName = pharmacistName;
        this.pharmacistPhone = pharmacistPhone;
        this.drugstoreId = drugstoreId;
        this.drugstoreName = drugstoreName;
        this.isBuy = isBuy;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public PrescriptionAudit() {
        super();
    }

    public Long getPrescriptionAuditId() {
        return prescriptionAuditId;
    }

    public void setPrescriptionAuditId(Long prescriptionAuditId) {
        this.prescriptionAuditId = prescriptionAuditId;
    }

    public String getPrescriptionAuditSeq() {
        return prescriptionAuditSeq;
    }

    public void setPrescriptionAuditSeq(String prescriptionAuditSeq) {
        this.prescriptionAuditSeq = prescriptionAuditSeq == null ? null : prescriptionAuditSeq.trim();
    }

    public Long getAssociatorId() {
        return associatorId;
    }

    public void setAssociatorId(Long associatorId) {
        this.associatorId = associatorId;
    }

    public String getAssociatorName() {
        return associatorName;
    }

    public void setAssociatorName(String associatorName) {
        this.associatorName = associatorName == null ? null : associatorName.trim();
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId == null ? null : personId.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode == null ? null : subjectCode.trim();
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName == null ? null : subjectName.trim();
    }

    public String getAnaphylaxis() {
        return anaphylaxis;
    }

    public void setAnaphylaxis(String anaphylaxis) {
        this.anaphylaxis = anaphylaxis == null ? null : anaphylaxis.trim();
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone == null ? null : patientPhone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Integer getAuditResultCode() {
        return auditResultCode;
    }

    public void setAuditResultCode(Integer auditResultCode) {
        this.auditResultCode = auditResultCode;
    }

    public String getAuditResultName() {
        return auditResultName;
    }

    public void setAuditResultName(String auditResultName) {
        this.auditResultName = auditResultName == null ? null : auditResultName.trim();
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion == null ? null : opinion.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName == null ? null : doctorName.trim();
    }

    public String getDoctorPhone() {
        return doctorPhone;
    }

    public void setDoctorPhone(String doctorPhone) {
        this.doctorPhone = doctorPhone == null ? null : doctorPhone.trim();
    }

    public Long getPharmacistId() {
        return pharmacistId;
    }

    public void setPharmacistId(Long pharmacistId) {
        this.pharmacistId = pharmacistId;
    }

    public String getPharmacistName() {
        return pharmacistName;
    }

    public void setPharmacistName(String pharmacistName) {
        this.pharmacistName = pharmacistName == null ? null : pharmacistName.trim();
    }

    public String getPharmacistPhone() {
        return pharmacistPhone;
    }

    public void setPharmacistPhone(String pharmacistPhone) {
        this.pharmacistPhone = pharmacistPhone == null ? null : pharmacistPhone.trim();
    }

    public Long getDrugstoreId() {
        return drugstoreId;
    }

    public void setDrugstoreId(Long drugstoreId) {
        this.drugstoreId = drugstoreId;
    }

    public String getDrugstoreName() {
        return drugstoreName;
    }

    public void setDrugstoreName(String drugstoreName) {
        this.drugstoreName = drugstoreName == null ? null : drugstoreName.trim();
    }

    public Integer getIsBuy() {
        return isBuy;
    }

    public void setIsBuy(Integer isBuy) {
        this.isBuy = isBuy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}